class Person:
    name = None
    age = None
    def __init__(self , name , age):
        self.name = name
        self.age = age

    def say(self):
        return f"name:{self.name} , age : {self.age}"

class Student(Person):
    id = None
    score = None

    def __init__(self , name , age , id , score):
        #使用父类的构造器初始化一部分信息
        super().__init__(name , age);
        #自己类的两个字段需要自己初始化、
        self.id = id
        self.score = score

    def say(self):
        return f"id:{self.id} , score = {self.score} {super().say()}"


#实例化Person类
p = Person("刘翔" , 22)
p_say_info = p.say()
print(p_say_info)

#实例化Student类
student = Student("樊振东" , 23 , 12 , 100)
s_say_info =  student.say()
print(s_say_info)
